package com.ccc.dao.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.ccc.dao.UserLineDao;
import com.ccc.model.UserLine;
import com.ccc.util.dao.UtilDao;

@Component("userLineDao")
public class UserLineDaoImpl implements UserLineDao {
	
	@Resource
	private UtilDao utilDao;

	@Override
	public void addUserLine(UserLine userLine) {
		utilDao.save(userLine);
	}

	@Override
	public void deleteUserLine(UserLine userLine) {
		utilDao.delete(userLine);
	}

	@Override
	public void updateUserLine(UserLine userLine) {
		utilDao.update(userLine);
	}

	@Override
	public UserLine findUserLine(int id) {
		return utilDao.find(UserLine.class, id);
	}

	@Override
	public List<UserLine> findUserLine(String hql, Object[] o) {
		return utilDao.find(hql, o);
	}

}
